<template>
	<view class="">
		<video :src="videoItem.video" :poster="videoItem.pic" controls :autoplay="true" :show-fullscreen-btn="false"></video>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				videoItem:{}
			}
		},
		onLoad() {
			const videoItem=getApp().globalData.videoItem;
			this.videoItem=videoItem;
			this.setNavTitle(videoItem.name)
		}
	}
</script>

<style scoped>
	video{
		width: 100%;
		height: 100vh;
		position: fixed;
		top: 0;
	}
</style>
